#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>
#include<QDebug>
#include<QPixmap>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* button=new QPushButton(this);
    button->setText("按钮");
    button->resize(100,100);
    button->move(200,200);
    QPixmap pixmap(":/cat.png");
    pixmap=pixmap.scaled(25,25);
    QCursor cursor(pixmap,2,2);
    this->setCursor(cursor);

    button->setCursor(QCursor(Qt::WaitCursor));
//    button->setSizePolicy(QSizePolicy());
    //    connect(button,&QPushButton::clicked,this,&QPushButton::close);

}

Widget::~Widget()
{
    delete ui;
}

